home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / xcmd / rinaldds.sit / Tabloid 1.0 (US) / cards.xml < prev    next >
Text File  |  1991-01-31  |  10KB  |  123 lines

  1. card_3055.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>3055</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_3273.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2661</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_2428.css" />
  13.     <part>
  14.         <id>1</id>
  15.         <type>field</type>
  16.         <visible> <true /> </visible>
  17.         <dontWrap> <false /> </dontWrap>
  18.         <dontSearch> <false /> </dontSearch>
  19.         <sharedText> <false /> </sharedText>
  20.         <fixedLineHeight> <true /> </fixedLineHeight>
  21.         <autoTab> <false /> </autoTab>
  22.         <lockText> <true /> </lockText>
  23.         <rect>
  24.             <left>69</left>
  25.             <top>68</top>
  26.             <right>434</right>
  27.             <bottom>252</bottom>
  28.         </rect>
  29.         <style>scrolling</style>
  30.         <autoSelect> <false /> </autoSelect>
  31.         <showLines> <false /> </showLines>
  32.         <wideMargins> <false /> </wideMargins>
  33.         <multipleLines> <false /> </multipleLines>
  34.         <reservedFamily> 0 </reservedFamily>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>left</textAlign>
  38.         <font>Geneva</font>
  39.         <textSize>9</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <textHeight>12</textHeight>
  42.         <name>Text</name>
  43.         <script></script>
  44.     </part>
  45.     <part>
  46.         <id>5</id>
  47.         <type>button</type>
  48.         <visible> <true /> </visible>
  49.         <reserved5> 0 </reserved5>
  50.         <reserved4> 0 </reserved4>
  51.         <reserved3> 0 </reserved3>
  52.         <reserved2> 0 </reserved2>
  53.         <reserved1> 0 </reserved1>
  54.         <enabled> <true /> </enabled>
  55.         <rect>
  56.             <left>174</left>
  57.             <top>281</top>
  58.             <right>343</right>
  59.             <bottom>311</bottom>
  60.         </rect>
  61.         <style>roundrect</style>
  62.         <showName> <true /> </showName>
  63.         <highlight> <false /> </highlight>
  64.         <autoHighlight> <true /> </autoHighlight>
  65.         <sharedHighlight> <true /> </sharedHighlight>
  66.         <family>0</family>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>0</icon>
  69.         <textAlign>center</textAlign>
  70.         <font>Chicago</font>
  71.         <textSize>12</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <name>Tabloid</name>
  74.         <script>on mouseUpif there is not a window "TheList"thenset cursor to watchTabloid "TheList",cd fld "List","dis"end ifend mouseUp</script>
  75.     </part>
  76.     <part>
  77.         <id>16</id>
  78.         <type>field</type>
  79.         <visible> <true /> </visible>
  80.         <dontWrap> <false /> </dontWrap>
  81.         <dontSearch> <false /> </dontSearch>
  82.         <sharedText> <false /> </sharedText>
  83.         <fixedLineHeight> <true /> </fixedLineHeight>
  84.         <autoTab> <false /> </autoTab>
  85.         <lockText> <false /> </lockText>
  86.         <rect>
  87.             <left>356</left>
  88.             <top>256</top>
  89.             <right>512</right>
  90.             <bottom>342</bottom>
  91.         </rect>
  92.         <style>scrolling</style>
  93.         <autoSelect> <false /> </autoSelect>
  94.         <showLines> <false /> </showLines>
  95.         <wideMargins> <false /> </wideMargins>
  96.         <multipleLines> <false /> </multipleLines>
  97.         <reservedFamily> 0 </reservedFamily>
  98.         <titleWidth>0</titleWidth>
  99.         <icon>0</icon>
  100.         <textAlign>left</textAlign>
  101.         <font>Geneva</font>
  102.         <textSize>9</textSize>
  103.         <textStyle>plain</textStyle>
  104.         <textHeight>12</textHeight>
  105.         <name>List</name>
  106.         <script></script>
  107.     </part>
  108.     <content>
  109.         <layer>card</layer>
  110.         <id>1</id>
  111.         <text>                                                Tabloid 1.0                                          by Fr├⌐d├⌐ric RINALDIDESCRIPTION------------  Tabloid XCMD displays a spreadsheet like XWindoid, with multiple cells and columns.SYNTAX-------    Tabloid <WName>[,<List>[,<WStyle>[,<X,Y[,Z,T]>][,<NO|ONE|CON|DIS>]                     [,<cell(s)>][,<fontName[,size]>][,<frame>]]PARAMETERS------------   Only first param is needed. Order of params 3 to 7 doesn't matter, since the XCMD is able to recognize them.   WName is a string giving the windoid name. Many windoids can be opened by using different names.   List is a comma/return delimited string that will be displayed. Line separator is return, column is comma.   WStyle is a string defining the window style. Allowed styles are : plain, zoom, roundRect, rect, shadow, windoid, windoidZoom, bigWindoid, bigWindoidZoom, Rinaldoid, RinaldoidZoom (Rinaldoid is the same as windoid, except that it displays the window title). All window styles are floating, except plain, zoom and roundRect. A windoid or Rinaldoid style window will have small scrollbars, while other styles will use standard size. Default is RinaldoidZoom if Rinaldoid WDEF resource is present, windoidZoom if not found.   <X,Y[,Z,T]> will be a point or a rect, and will define position and/or size of the windoid. Coordinated are card-relative. If omitted, windoid will appear with standard size at "0,10".   <NO|ONE|CON|DIS> defines the selection mode (no selection, one at a time, may but adjacent, many disjoint). Default is ONE.   <cell(s)> comma separated list of cell coordinates. Each cell coordinate is a string of two integers separated by space, giving line and column number of the cell ("<line>_<column>[...,<line>_<column>]"). It defines the selected cells(s) when the windoid appears.    Default is "1 1", but "0 0" can be used to have no selection at start.   <fontName[,size]> is the name of font and its size to use. Default is Geneva 10.   <frame> is a boolean telling if the cells must be framed or not. Default is true, but frame appears only if Tabloid LDEF is present in resource fork.   Using "!" and "?" as parameter will return an online help (resp. copyright and syntax).USING-----   Tabloid is stand alone, no linked resource is needed. Meanwhile, this stack contains a LDEF, WDEF and CDEF resources that are recognized by the XCMD if present.    The LDEF allows to have framed cells like in a spreadsheet. The WDEF allows to have an enhanced windoid-type window displaying title, while the CDEF is useful to get nice-looking scroll arrows for small scroll bars. So, these resources are optional, and for aesthetic purpose only. If you copy them, their ID can be set to any value but don't change their name.HINT :   If you use a rect ot shadow style window, placing it on a card can simulate a smart HyperCard spreadsheet field.   If no rectangle param is used, the size of the window will be set according to maximum number of lines and columns contained in the list. The cells have all the same size which is automatically calculated according to the longest contained string.  Clicking on cells(s) in the windoid sends a "TabloidSelect" message followed by the clicked word(s) and the Tabloid name. This message can be trapped using a handler :     on TabloidSelect What,Where       if  Where is "MyList" and What is ...     end TabloidSelectNOTE : in order to avoid HyperCard's confusion, existing quotes in What param are automatically changed to single quote.   When a windoid is opened, the "openTabloid" message is sent, followed by the windoid name. This allows to define window properties before it is shown, since the message can be trapped using a handler :     on openTabloid Which       if Which is "MyWindow" then...     end openTabloid   When a windoid is close, the "closeTabloid" message is sent, followed by the windoid name. This message can be trapped using a handler :     on closeTabloid Which       if Which is "MyWindow" then...     end closeTabloidHINT : the card script contains a "on ControlKey" handler that allows selection of first item when typing a key in conjunction with control key. Moreover, while holding the control key down, the arrow keys allow to move in the list, return or enter to simulate a double-clic.   It is possible to send any string to search for to the window using :  ΓÇ£send "string" to window <WName>ΓÇ¥   If the string is found, it will be highlighted int the window. Look for "on controlKey" handler in the card script, type Control+Key to try it.   Like any XWindow, Tabloid has properties that can be get and set thru HyperTalk.   ΓÇ£properties of window "name"ΓÇ¥ will return an item list of all allowed properties :   ΓÇó loc                  : windoid's position according to card   ΓÇó visible            : windoid's visibility   ΓÇó text                : windoid's text   ΓÇó rect                : windoid's position and size according to card   ΓÇó selectedCell    : cell(s) currently selected   ΓÇó selectionMode : selection mode (NO|ONE|CON|DIS)   ΓÇó frame             : cell frame (true|false)If an error occurs, Tabloid can return :     "Error : Missing window name"     "Error : Duplicate window name"     "Error : Empty parameter"     "Error : Bad Font size"     "Error : Unknown font name"     "Error : Unrecognized parameter #xx"     "Error : Unable to create XWindow"     "Error : XWindows not implemented"     "Error : Couldn't create list"--------------------------------------------------------------------This (these) external(s) is (are) FreeWare,allowing unlimited use in any non-commercial stack. You just need in this case to mention the author's name and copyright in your stack.Any commercial use must be licensed and aknowledged by the author.                            ┬⌐ F. Rinaldi - 1989,1990,1991AppleLink: RINALDI1        CalvaCom : FR10        Compuserve : 71170,2111</text>
  112.     </content>
  113.     <content>
  114.         <layer>card</layer>
  115.         <id>16</id>
  116.         <text>This,is,a,testto,demonstratehow,Tabloid,works</text>
  117.     </content>
  118.     <name></name>
  119.     <script>on TabloidSelect What,Whereput Where & " : " & Whatend TabloidSelecton closeTabloid Whichput "You close windoid ΓÇ£" & Which & "ΓÇ¥"end closeTabloidon controlKey Whatif there is a window "TheList"then send numToChar(What + 64) to window "TheList"end ControlKey</script>
  120. </card>
  121.  
  122.  
  123.